package com.klun.concDesign.chapterFive.Disruptor_5_4;

import com.lmax.disruptor.WorkHandler;

/**
 * 消费者 实现 WorkHandler 接口
 */
public class Consumer implements WorkHandler<PCdata> {
    @Override
    public void onEvent(PCdata o) throws Exception {
        System.out.println("当前线程ID"+Thread.currentThread().getId()
                + ": Event:--" +o.getValue()*o.getValue() +"--");
    }
}
